package com.learn.rabbitmq.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Service;

@Service
public class PaymentConsumer implements MessageListener {

	public void onMessage(Message message) {
		
		System.out.println("订单完成已收到paymentConsumer：" + new String(message.getBody()));
	}

}
